Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(action-bar): use core tokens #2639

Merged
merged 2 commits into from
Jul 19, 2023

Conversation

lunarfusion
Copy link
Contributor

@lunarfusion lunarfusion commented Oct 5, 2022

Description

Changes expected DOM structure from:

<sp-action-bar open>
    <sp-checkbox indeterminate>228 Selected</sp-checkbox>
    <sp-action-group quiet>
        <sp-action-button label="Edit">
            <sp-icon-edit slot="icon"></sp-icon-edit>
        </sp-action-button>
        <sp-action-button label="More">
            <sp-icon-more slot="icon"></sp-icon-more>
        </sp-action-button>
    </sp-action-group>
</sp-action-bar>

to

<sp-action-bar open>
    2 selected
    <sp-action-button slot="buttons" label="Edit">
        <sp-icon-edit slot="icon"></sp-icon-edit>
    </sp-action-button>
    <sp-action-button slot="buttons" label="More">
        <sp-icon-more slot="icon"></sp-icon-more>
    </sp-action-button>
</sp-action-bar>
  • replaces the "select" functionality of the Checkbox with a Close Button
  • removes the need for an Action Group, which allows for the Action Bar to manage delivery of the Group
  • adds support for emphasized delivery

Related issue(s)

Motivation and context

Core token migration

How has this been tested?

  • Test case 1
    1. Go here
    2. Review the new API options, DOM structure, and final delivery

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • If my change required a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have reviewed at the Accessibility Practices for this feature, see: Aria Practices

@github-actions
Copy link

github-actions bot commented Oct 5, 2022

Tachometer results

Chrome

accordion permalink

Version Bytes Avg Time vs remote vs branch
npm latest 396 kB 248.35ms - 251.80ms - faster ✔
0% - 2%
0.21ms - 6.24ms
branch 397 kB 250.83ms - 255.77ms slower ❌
0% - 2%
0.21ms - 6.24ms
-

action-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 369 kB 37.80ms - 38.11ms - faster ✔
70% - 70%
88.10ms - 89.78ms
branch 470 kB 126.07ms - 127.73ms slower ❌
232% - 237%
88.10ms - 89.78ms
-

action-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 508 kB 236.60ms - 239.30ms - faster ✔
0% - 2%
0.09ms - 4.28ms
branch 510 kB 238.53ms - 241.74ms slower ❌
0% - 2%
0.09ms - 4.28ms
-

action-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 529 kB 142.30ms - 144.77ms - faster ✔
0% - 2%
0.32ms - 3.38ms
branch 530 kB 144.48ms - 146.30ms slower ❌
0% - 2%
0.32ms - 3.38ms
-

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 738 kB 198.53ms - 202.26ms - unsure 🔍
-1% - +1%
-2.72ms - +2.99ms
branch 738 kB 198.09ms - 202.42ms unsure 🔍
-1% - +1%
-2.99ms - +2.72ms
-

button-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 425 kB 125.64ms - 127.72ms - unsure 🔍
-1% - +1%
-1.38ms - +1.33ms
branch 426 kB 125.84ms - 127.57ms unsure 🔍
-1% - +1%
-1.33ms - +1.38ms
-

button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 430 kB 145.38ms - 147.08ms - unsure 🔍
-1% - +0%
-1.91ms - +0.62ms
branch 431 kB 145.94ms - 147.81ms unsure 🔍
-0% - +1%
-0.62ms - +1.91ms
-

card permalink

Version Bytes Avg Time vs remote vs branch
npm latest 492 kB 124.52ms - 127.87ms - unsure 🔍
-1% - +3%
-1.07ms - +3.39ms
branch 493 kB 123.56ms - 126.51ms unsure 🔍
-3% - +1%
-3.39ms - +1.07ms
-

checkbox permalink

Version Bytes Avg Time vs remote vs branch
npm latest 406 kB 77.23ms - 78.05ms - faster ✔
0% - 2%
0.10ms - 1.36ms
branch 407 kB 77.90ms - 78.85ms slower ❌
0% - 2%
0.10ms - 1.36ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 431 kB 73.59ms - 74.12ms - unsure 🔍
-1% - +0%
-0.69ms - +0.20ms
branch 433 kB 73.75ms - 74.46ms unsure 🔍
-0% - +1%
-0.20ms - +0.69ms
-

field-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 412 kB 322.91ms - 327.29ms - unsure 🔍
-2% - +0%
-5.69ms - +0.17ms
branch 413 kB 325.92ms - 329.80ms unsure 🔍
-0% - +2%
-0.17ms - +5.69ms
-

field-label permalink

Version Bytes Avg Time vs remote vs branch
npm latest 373 kB 49.67ms - 50.39ms - unsure 🔍
-1% - +1%
-0.39ms - +0.65ms
branch 374 kB 49.52ms - 50.28ms unsure 🔍
-1% - +1%
-0.65ms - +0.39ms
-

help-text permalink

Version Bytes Avg Time vs remote vs branch
npm latest 368 kB 23.53ms - 23.81ms - unsure 🔍
-1% - +0%
-0.31ms - +0.08ms
branch 369 kB 23.65ms - 23.92ms unsure 🔍
-0% - +1%
-0.08ms - +0.31ms
-

icon permalink

Version Bytes Avg Time vs remote vs branch
npm latest 375 kB 25.96ms - 26.24ms - faster ✔
1% - 2%
0.21ms - 0.62ms
branch 376 kB 26.36ms - 26.67ms slower ❌
1% - 2%
0.21ms - 0.62ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 420 kB 262.52ms - 268.11ms - unsure 🔍
-0% - +2%
-1.11ms - +6.27ms
branch 421 kB 260.32ms - 265.15ms unsure 🔍
-2% - +0%
-6.27ms - +1.11ms
-

meter permalink

Version Bytes Avg Time vs remote vs branch
npm latest 387 kB 87.74ms - 88.59ms - unsure 🔍
-0% - +1%
-0.43ms - +0.82ms
branch 388 kB 87.51ms - 88.43ms unsure 🔍
-1% - +0%
-0.82ms - +0.43ms
-

number-field permalink

Version Bytes Avg Time vs remote vs branch
npm latest 625 kB 225.45ms - 229.12ms - unsure 🔍
-2% - +1%
-3.58ms - +1.83ms
branch 627 kB 226.17ms - 230.15ms unsure 🔍
-1% - +2%
-1.83ms - +3.58ms
-

overlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 456 kB 77.02ms - 78.13ms - faster ✔
0% - 2%
0.02ms - 1.75ms
branch 457 kB 77.80ms - 79.12ms slower ❌
0% - 2%
0.02ms - 1.75ms
-

picker-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 416 kB 59.62ms - 60.32ms - faster ✔
0% - 3%
0.09ms - 2.06ms
branch 417 kB 60.13ms - 61.96ms slower ❌
0% - 3%
0.09ms - 2.06ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 593 kB 657.46ms - 667.68ms - unsure 🔍
-1% - +2%
-3.99ms - +11.24ms
branch 593 kB 653.29ms - 664.59ms unsure 🔍
-2% - +1%
-11.24ms - +3.99ms
-

popover permalink

Version Bytes Avg Time vs remote vs branch
npm latest 365 kB 36.88ms - 37.18ms - unsure 🔍
-1% - +0%
-0.31ms - +0.09ms
branch 367 kB 37.00ms - 37.27ms unsure 🔍
-0% - +1%
-0.09ms - +0.31ms
-

progress-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 385 kB 59.72ms - 60.50ms - unsure 🔍
-0% - +1%
-0.18ms - +0.76ms
branch 386 kB 59.55ms - 60.08ms unsure 🔍
-1% - +0%
-0.76ms - +0.18ms
-

radio permalink

Version Bytes Avg Time vs remote vs branch
npm latest 391 kB 117.68ms - 119.26ms - unsure 🔍
-2% - +0%
-2.00ms - +0.54ms
branch 392 kB 118.21ms - 120.19ms unsure 🔍
-0% - +2%
-0.54ms - +2.00ms
-

search permalink

Version Bytes Avg Time vs remote vs branch
npm latest 469 kB 116.01ms - 118.18ms - unsure 🔍
-1% - +1%
-1.15ms - +1.68ms
branch 470 kB 115.92ms - 117.74ms unsure 🔍
-1% - +1%
-1.68ms - +1.15ms
-

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 452 kB 162.00ms - 164.45ms - unsure 🔍
-1% - +1%
-1.80ms - +1.95ms
branch 453 kB 161.73ms - 164.57ms unsure 🔍
-1% - +1%
-1.95ms - +1.80ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 671 kB 2034.84ms - 2038.01ms - unsure 🔍
-0% - +0%
-3.96ms - +0.86ms
branch 671 kB 2036.16ms - 2039.79ms unsure 🔍
-0% - +0%
-0.86ms - +3.96ms
-

swatch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 388 kB 40.47ms - 41.11ms - unsure 🔍
-1% - +1%
-0.44ms - +0.39ms
branch 389 kB 40.55ms - 41.09ms unsure 🔍
-1% - +1%
-0.39ms - +0.44ms
-

switch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 370 kB 47.44ms - 47.74ms - unsure 🔍
-1% - +1%
-0.25ms - +0.25ms
branch 371 kB 47.39ms - 47.79ms unsure 🔍
-1% - +1%
-0.25ms - +0.25ms
-

table permalink

Version Bytes Avg Time vs remote vs branch
npm latest 498 kB 518.99ms - 525.61ms - unsure 🔍
-2% - +0%
-9.03ms - +0.22ms
branch 500 kB 523.48ms - 529.93ms unsure 🔍
-0% - +2%
-0.22ms - +9.03ms
-

tabs permalink

Version Bytes Avg Time vs remote vs branch
npm latest 406 kB 175.71ms - 178.74ms - unsure 🔍
-1% - +2%
-0.99ms - +2.87ms
branch 407 kB 175.09ms - 177.48ms unsure 🔍
-2% - +1%
-2.87ms - +0.99ms
-

tags permalink

Version Bytes Avg Time vs remote vs branch
npm latest 450 kB 28.95ms - 29.28ms - unsure 🔍
-1% - +0%
-0.40ms - +0.10ms
branch 452 kB 29.08ms - 29.45ms unsure 🔍
-0% - +1%
-0.10ms - +0.40ms
-

textfield permalink

Version Bytes Avg Time vs remote vs branch
npm latest 416 kB 69.21ms - 70.63ms - unsure 🔍
-1% - +1%
-1.01ms - +0.93ms
branch 417 kB 69.30ms - 70.62ms unsure 🔍
-1% - +1%
-0.93ms - +1.01ms
-

toast permalink

Version Bytes Avg Time vs remote vs branch
npm latest 418 kB 46.52ms - 47.18ms - unsure 🔍
-2% - +0%
-0.78ms - +0.12ms
branch 419 kB 46.87ms - 47.49ms unsure 🔍
-0% - +2%
-0.12ms - +0.78ms
-

tooltip permalink

Version Bytes Avg Time vs remote vs branch
npm latest 360 kB 36.22ms - 36.61ms - unsure 🔍
-1% - +0%
-0.47ms - +0.11ms
branch 361 kB 36.38ms - 36.82ms unsure 🔍
-0% - +1%
-0.11ms - +0.47ms
-

top-nav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 410 kB 127.21ms - 129.05ms - unsure 🔍
-1% - +1%
-0.96ms - +1.83ms
branch 411 kB 126.65ms - 128.74ms unsure 🔍
-1% - +1%
-1.83ms - +0.96ms
-
Firefox

accordion permalink

Version Bytes Avg Time vs remote vs branch
npm latest 396 kB 523.79ms - 540.49ms - faster ✔
3% - 9%
18.70ms - 52.58ms
branch 397 kB 553.04ms - 582.52ms slower ❌
3% - 10%
18.70ms - 52.58ms
-

action-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 369 kB 148.21ms - 155.39ms - faster ✔
60% - 64%
228.29ms - 264.55ms
branch 470 kB 380.45ms - 415.99ms slower ❌
149% - 176%
228.29ms - 264.55ms
-

action-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 508 kB 510.27ms - 528.93ms - unsure 🔍
-3% - +2%
-16.04ms - +10.48ms
branch 510 kB 512.95ms - 531.81ms unsure 🔍
-2% - +3%
-10.48ms - +16.04ms
-

action-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 529 kB 348.53ms - 365.07ms - faster ✔
1% - 9%
3.16ms - 33.32ms
branch 530 kB 362.43ms - 387.65ms slower ❌
1% - 9%
3.16ms - 33.32ms
-

action-menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 738 kB 409.93ms - 438.11ms - unsure 🔍
-6% - +3%
-26.95ms - +12.39ms
branch 738 kB 417.58ms - 445.02ms unsure 🔍
-3% - +6%
-12.39ms - +26.95ms
-

button-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 425 kB 343.40ms - 368.96ms - unsure 🔍
-5% - +5%
-18.64ms - +16.52ms
branch 426 kB 345.17ms - 369.31ms unsure 🔍
-5% - +5%
-16.52ms - +18.64ms
-

button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 430 kB 354.32ms - 372.48ms - faster ✔
3% - 11%
9.80ms - 44.48ms
branch 431 kB 375.76ms - 405.32ms slower ❌
3% - 12%
9.80ms - 44.48ms
-

card permalink

Version Bytes Avg Time vs remote vs branch
npm latest 492 kB 286.52ms - 300.08ms - unsure 🔍
-7% - +2%
-20.36ms - +5.12ms
branch 493 kB 290.13ms - 311.71ms unsure 🔍
-2% - +7%
-5.12ms - +20.36ms
-

checkbox permalink

Version Bytes Avg Time vs remote vs branch
npm latest 406 kB 248.77ms - 274.23ms - unsure 🔍
-6% - +6%
-15.62ms - +16.58ms
branch 407 kB 251.16ms - 270.88ms unsure 🔍
-6% - +6%
-16.58ms - +15.62ms
-

dialog permalink

Version Bytes Avg Time vs remote vs branch
npm latest 431 kB 183.48ms - 204.68ms - unsure 🔍
-8% - +7%
-16.63ms - +12.95ms
branch 433 kB 185.61ms - 206.23ms unsure 🔍
-7% - +9%
-12.95ms - +16.63ms
-

field-group permalink

Version Bytes Avg Time vs remote vs branch
npm latest 412 kB 862.07ms - 895.81ms - unsure 🔍
-4% - +1%
-35.46ms - +10.14ms
branch 413 kB 876.26ms - 906.94ms unsure 🔍
-1% - +4%
-10.14ms - +35.46ms
-

field-label permalink

Version Bytes Avg Time vs remote vs branch
npm latest 373 kB 138.38ms - 156.10ms - unsure 🔍
-10% - +8%
-15.09ms - +11.53ms
branch 374 kB 139.09ms - 158.95ms unsure 🔍
-8% - +10%
-11.53ms - +15.09ms
-

help-text permalink

Version Bytes Avg Time vs remote vs branch
npm latest 368 kB 80.68ms - 91.12ms - unsure 🔍
-15% - +1%
-14.37ms - +0.89ms
branch 369 kB 87.08ms - 98.20ms unsure 🔍
-1% - +17%
-0.89ms - +14.37ms
-

icon permalink

Version Bytes Avg Time vs remote vs branch
npm latest 375 kB 81.69ms - 92.83ms - unsure 🔍
-16% - +2%
-15.74ms - +2.26ms
branch 376 kB 86.94ms - 101.06ms unsure 🔍
-3% - +18%
-2.26ms - +15.74ms
-

menu permalink

Version Bytes Avg Time vs remote vs branch
npm latest 420 kB 553.12ms - 580.60ms - unsure 🔍
-2% - +4%
-13.45ms - +22.53ms
branch 421 kB 550.71ms - 573.93ms unsure 🔍
-4% - +2%
-22.53ms - +13.45ms
-

meter permalink

Version Bytes Avg Time vs remote vs branch
npm latest 387 kB 229.70ms - 247.18ms - unsure 🔍
-7% - +4%
-15.86ms - +10.38ms
branch 388 kB 231.40ms - 250.96ms unsure 🔍
-4% - +7%
-10.38ms - +15.86ms
-

number-field permalink

Version Bytes Avg Time vs remote vs branch
npm latest 625 kB 468.48ms - 483.00ms - faster ✔
7% - 13%
35.82ms - 70.18ms
branch 627 kB 513.17ms - 544.31ms slower ❌
7% - 15%
35.82ms - 70.18ms
-

overlay permalink

Version Bytes Avg Time vs remote vs branch
npm latest 456 kB 177.34ms - 201.02ms - unsure 🔍
-10% - +8%
-19.69ms - +15.33ms
branch 457 kB 178.46ms - 204.26ms unsure 🔍
-8% - +10%
-15.33ms - +19.69ms
-

picker-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 416 kB 169.70ms - 187.82ms - unsure 🔍
-13% - +3%
-25.56ms - +5.92ms
branch 417 kB 175.71ms - 201.45ms unsure 🔍
-3% - +14%
-5.92ms - +25.56ms
-

picker permalink

Version Bytes Avg Time vs remote vs branch
npm latest 593 kB 1087.06ms - 1118.38ms - unsure 🔍
-2% - +3%
-17.31ms - +28.19ms
branch 593 kB 1080.78ms - 1113.78ms unsure 🔍
-3% - +2%
-28.19ms - +17.31ms
-

popover permalink

Version Bytes Avg Time vs remote vs branch
npm latest 365 kB 126.00ms - 140.88ms - unsure 🔍
-14% - +3%
-20.66ms - +4.66ms
branch 367 kB 131.20ms - 151.68ms unsure 🔍
-4% - +16%
-4.66ms - +20.66ms
-

progress-bar permalink

Version Bytes Avg Time vs remote vs branch
npm latest 385 kB 160.13ms - 181.95ms - unsure 🔍
-8% - +9%
-12.91ms - +15.27ms
branch 386 kB 160.94ms - 178.78ms unsure 🔍
-9% - +8%
-15.27ms - +12.91ms
-

radio permalink

Version Bytes Avg Time vs remote vs branch
npm latest 391 kB 299.36ms - 320.44ms - unsure 🔍
-5% - +3%
-15.12ms - +10.92ms
branch 392 kB 304.36ms - 319.64ms unsure 🔍
-4% - +5%
-10.92ms - +15.12ms
-

search permalink

Version Bytes Avg Time vs remote vs branch
npm latest 469 kB 233.40ms - 253.44ms - unsure 🔍
-8% - +3%
-19.94ms - +6.42ms
branch 470 kB 241.61ms - 258.75ms unsure 🔍
-3% - +8%
-6.42ms - +19.94ms
-

slider permalink

Version Bytes Avg Time vs remote vs branch
npm latest 452 kB 378.61ms - 401.51ms - unsure 🔍
-3% - +4%
-12.92ms - +16.84ms
branch 453 kB 378.60ms - 397.60ms unsure 🔍
-4% - +3%
-16.84ms - +12.92ms
-

split-button permalink

Version Bytes Avg Time vs remote vs branch
npm latest 671 kB 2182.93ms - 2196.71ms - unsure 🔍
-0% - +1%
-8.28ms - +11.32ms
branch 671 kB 2181.34ms - 2195.26ms unsure 🔍
-1% - +0%
-11.32ms - +8.28ms
-

swatch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 388 kB 126.49ms - 145.51ms - unsure 🔍
-10% - +8%
-13.92ms - +11.52ms
branch 389 kB 128.75ms - 145.65ms unsure 🔍
-9% - +10%
-11.52ms - +13.92ms
-

switch permalink

Version Bytes Avg Time vs remote vs branch
npm latest 370 kB 140.42ms - 154.02ms - unsure 🔍
-7% - +8%
-10.41ms - +11.81ms
branch 371 kB 137.74ms - 155.30ms unsure 🔍
-8% - +7%
-11.81ms - +10.41ms
-

table permalink

Version Bytes Avg Time vs remote vs branch
npm latest 498 kB 1207.13ms - 1230.95ms - faster ✔
7% - 10%
90.07ms - 132.25ms
branch 500 kB 1312.79ms - 1347.61ms slower ❌
7% - 11%
90.07ms - 132.25ms
-

tabs permalink

Version Bytes Avg Time vs remote vs branch
npm latest 406 kB 353.82ms - 375.54ms - unsure 🔍
-5% - +4%
-17.21ms - +13.49ms
branch 407 kB 355.69ms - 377.39ms unsure 🔍
-4% - +5%
-13.49ms - +17.21ms
-

tags permalink

Version Bytes Avg Time vs remote vs branch
npm latest 450 kB 82.00ms - 97.40ms - unsure 🔍
-17% - +9%
-15.98ms - +8.46ms
branch 452 kB 83.97ms - 102.95ms unsure 🔍
-10% - +18%
-8.46ms - +15.98ms
-

textfield permalink

Version Bytes Avg Time vs remote vs branch
npm latest 416 kB 147.36ms - 166.88ms - unsure 🔍
-9% - +9%
-14.19ms - +13.51ms
branch 417 kB 147.64ms - 167.28ms unsure 🔍
-9% - +9%
-13.51ms - +14.19ms
-

toast permalink

Version Bytes Avg Time vs remote vs branch
npm latest 418 kB 134.39ms - 152.65ms - unsure 🔍
-11% - +7%
-16.17ms - +10.73ms
branch 419 kB 136.37ms - 156.11ms unsure 🔍
-8% - +11%
-10.73ms - +16.17ms
-

tooltip permalink

Version Bytes Avg Time vs remote vs branch
npm latest 360 kB 98.97ms - 114.03ms - unsure 🔍
-7% - +13%
-7.31ms - +12.87ms
branch 361 kB 97.01ms - 110.43ms unsure 🔍
-12% - +7%
-12.87ms - +7.31ms
-

top-nav permalink

Version Bytes Avg Time vs remote vs branch
npm latest 410 kB 261.34ms - 280.74ms - unsure 🔍
-6% - +4%
-17.40ms - +11.40ms
branch 411 kB 263.40ms - 284.68ms unsure 🔍
-4% - +6%
-11.40ms - +17.40ms
-

@Westbrook Westbrook marked this pull request as draft October 6, 2022 15:57
@lunarfusion
Copy link
Contributor Author

Summary of Changes Impacting Failures

Changes effecting horizontal alignment

Checkbox has been replaced by CloseButton and Label.

Since ActionBar now has three child elements instead of two, the layout is no longer controlled with justify-content:space-between. Instead, the last element, ActionGroup, is aligned to the end of ActionBar with margin-inline-start: auto.

Changes effecting vertical alignment

Since new tokens provide exact spacing from the top of ActionBar to the components within, align-content: center is no longer used as it would conflict with this exact spacing.

Changes effecting shadow appearance

Express theme drop shadow filter has increased in vertical sizing from 1px to 4px and increased in blur from 4px to 16px.

Failure Pattern 1: Expected

Screen Shot 2022-10-06 at 2 03 17 PM

Markup updates are needed to replace Checkbox with CloseButton and Label and to update Popover to reflect the new flex layout styles. A visual illustrating the new child components follows:

Screen Shot 2022-10-06 at 5 02 21 PM

Failure Pattern 2: Expected

Screen Shot 2022-10-07 at 11 18 57 AM

The failure which is noticeable on Express themes is a dramatic difference in drop shadow width and blur. Express drop shadow values have changed from 0 1 4 to 0 4 16, resulting in a much more pronounced shadow.

@pfulton
Copy link
Collaborator

pfulton commented Nov 1, 2022

The ActionBar changes have been merged in Spectrum CSS, and the release has been graduated. The full release is now: @spectrum-css/[email protected]

@Westbrook Westbrook marked this pull request as ready for review November 9, 2022 21:53
@Westbrook Westbrook force-pushed the lunarfusion/action-bar-core-tokens branch from 4a10720 to 9d26083 Compare November 9, 2022 22:52
Comment on lines 203 to 215
:host([emphasized]) .spectrum-ActionButton,
:host([emphasized]) .spectrum-CloseButton-UIIcon,
:host([emphasized]) ::slotted(sp-field-label) {
fill: var(
--mod-actionbar-emphasized-item-counter-color,
var(--spectrum-actionbar-emphasized-item-counter-color)
);
color: var(
--mod-actionbar-emphasized-item-counter-color,
var(--spectrum-actionbar-emphasized-item-counter-color)
); /* .spectrum-ActionBar--emphasized .spectrum-ActionButton,
* .spectrum-ActionBar--emphasized .spectrum-FieldLabel,
* .spectrum-ActionBar--emphasized .spectrum-CloseButton-UIIcon */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfulton and @lunarfusion this would otherwise make these buttons "static white", right?

Does this point at the benefit of asking the design team to include a "static white" Field Label?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfulton if this "static white"s the Buttons, should we look at having Action Group manage the variant of child buttons the way you added support for managing size that way?

@@ -71,6 +75,7 @@ export class ActionBar extends SpectrumElement {
public override render(): TemplateResult {
return html`
<sp-popover ?open=${this.open} id="popover">
<sp-close-button class="close-button"></sp-close-button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pfulton it appears that the CSS implementation for this does not have an accessible label. Can we get clarify on what that should be "Close", "Deselect", etc.?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did we ever get content for this button, @pfulton?

Copy link
Collaborator

@pfulton pfulton Apr 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Westbrook guidance from design and content strategy is to use the phrase "Clear selection". We'll make this change in the CSS docs in our next sprint to reflect this choice.

@Westbrook Westbrook force-pushed the lunarfusion/action-bar-core-tokens branch from 062a3c8 to 24f52cf Compare July 19, 2023 15:57
@Westbrook Westbrook merged commit ffdce16 into main Jul 19, 2023
@Westbrook Westbrook deleted the lunarfusion/action-bar-core-tokens branch July 19, 2023 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug][Docs][a11y]: move the ActionBar after the trigger button that opens it in examples
4 participants